package com.foundryx.shared.response;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @className: CommonResultCode
 * @author: ocxz1
 * @date: 2025/6/25 上午10:57
 * @Version: 1.0
 * @description: fx-share-resources
 */
@AllArgsConstructor
@Getter
public enum CommonResultCode implements IResultCode {
    SUCCESS(200, "success"),
    SYSTEM_ERROR(500, "系统异常"),
    BAD_REQUEST(400, "请求参数错误"),
    UNAUTHORIZED(401, "未授权"),
    FORBIDDEN(403, "无权限访问"),
    NOT_FOUND(404, "资源不存在");

    ;
    private final int code;
    private final String message;
}
